/*
 * @Description: 类型定义
 * @Author: bxsdhx
 * @Date: 2024-02-21 17:59:33
 * @LastEditTime: 2024-02-21 21:00:35
 * Copyright (C) 2024 bxsdhx. All rights reserved.
 */
/**
 * 坐标
 */
export interface Position {
  /**
   * X坐标
   */
  x: number;
  /**
   * Y坐标
   */
  y: number;
}
/**
 * 子弹
 */
export interface Bullet extends Position {
  /**
   * ID
   */
  id: string;
}
/**
 * 战机
 */
export interface Aircraft extends Position {
  /**
   * ID
   */
  id: string;
  /**
   * 类型
   *
   * player 玩家
   *
   * enemy1 敌机1
   *
   * enemy2 敌机2
   *
   * enemy3 敌机3
   */
  type: "player" | "enemy1" | "enemy2" | "enemy3";
  /**
   * 气血
   */
  blood: number;
  /**
   * 存在状态
   */
  status: boolean;
}
